animateFromOverview(fadeOnPrimary) {
for (let i = 0; i < this._workspacesViews.length; i++) {
- const { x, y, width, height } =
- Main.layoutManager.getWorkAreaForMonitor(i);
- this._workspacesViews[i].ease({
- x, y, width, height,
- duration: ANIMATION_TIME,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- });
-
let animationType;
if (fadeOnPrimary && i == this._primaryIndex)
animationType = AnimationType.FADE;
animationType = AnimationType.ZOOM;
this._workspacesViews[i].animateFromOverview(animationType);
}
+
+ const { primaryIndex } = Main.layoutManager;
+ const { x, y, width, height } =
+ Main.layoutManager.getWorkAreaForMonitor(primaryIndex);
+ this._getPrimaryView().ease({
+ x, y, width, height,
+ duration: ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
}
vfunc_hide() {